/**      
 * @file		whileLoop.cpp
 * @description		Demonstrates the use of a while statement.
 *			This is a counter controlled loop.
 * @course		CSCI 123 Section 00000
 * @assignment		Sample 9
 * @date		mm/dd/yyyy
 * @author		Brad Rippe (00000000) brippe@fullcoll.edu
 * @version		1.0
 */
#include <iostream>
using namespace std;

/**
 * @return zero if the application executes successfully
 */
int main() {
	int total		= 0;
	int gradeCounter	= 1;
	int gradeValue		= 0;

	while (gradeCounter <= 10) {
		cout << "Enter integer grade:\n";
		cin >> gradeValue;
		total += gradeValue;

		gradeCounter += 1;
	}

	int average = total / 10;
	cout << "Class average is " << average << endl;

	return 0;
}
